import request from '@/utils/request'


export function addUser(data) {
  return request({
    url: '/exam/teacher/addUser',
    method: 'post',
    data
  })
}

export function getInfo(token) {
  return request({
    url: '/exam/teacher/info',
    method: 'get',
    params: { token }
  })
}

export function updateUser(data) {
  return request({
    url: '/exam/teacher/updateUser',
    method: 'post',
    data
  })
}

export function getList(params) {
  return request({
    url: '/exam/teacher/list',
    method: 'get',
    params
  })
}

export function deleteBatch(params) {
  return request({
    url: '/exam/teacher/delete',
    method: 'get',
    params
  })
}

